<?php 
/**
 * 站点首页模板
 */
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<!-- start yoki-content -->
    <div class="yoki-content">
        <div class="wrap yoki-main">
            <div class="content">

<?php doAction('index_loglist_top'); ?>

<?php 
if (!empty($logs)):
foreach($logs as $value): 
?>
            	<!-- start item 1 -->
                <div class="yoki-article-list">
                    <div class="yoki-article-list-title">
                        <h2><?php topflg($value['top'], $value['sortop'], isset($sortid)?$sortid:''); ?><a href="<?php echo $value['log_url']; ?>"><?php echo $value['log_title']; ?></a></h2>
                    </div>
                    <div class="yoki-article-list-info">
	<?php echo gmdate('Y-n-j', $value['date']); ?> <?php blog_author($value['author']); ?> 
	<?php blog_sort($value['logid']); ?> 
	<?php editflg($value['logid'],$value['author']); ?>
	<a href="<?php echo $value['log_url']; ?>#comments">评论(<?php echo $value['comnum']; ?>)</a>
	<a href="<?php echo $value['log_url']; ?>">浏览(<?php echo $value['views']; ?>)</a>
                    </div>
                    <hr />
                    <div class="yoki-article-abs">
						<?php echo $value['log_description']; ?>
					</div>
                    <div class="yoki-article-lable">
						<?php blog_tag($value['logid']); ?>
                    </div>
                    <hr />
                </div>
                <!-- end item 1 -->
<?php 
endforeach;
else:
?>
<!-- start item 1 -->
<div class="yoki-article-list">
    <div class="yoki-article-list-title">
        <a href="#">
            <h2>未找到</h2></a>
    </div>
    <div class="yoki-article-abs">抱歉，没有符合您查询条件的结果。</div>
</div>
<!-- end item 1 -->
<?php endif;?>

<div id="pagenavi">
	<?php echo $page_url;?>
</div>
</div> <!-- end list content -->
</div><!-- end yoki main content -->

<?php
 include View::getView('side');
 ?>
 <!-- end yoki-content -->
</div>

<?php
 include View::getView('footer');
?>

